import 'package:flutter/material.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBEngineer/YBBaseRouter/YBApplication.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBHelper/YBColor/YBColor.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBHelper/YBTextStyle/YBTextStyle.dart';


class YBMyGongDanSubPage extends StatelessWidget {

  final String contentStr;
  final String addressStr;
  final String shengYuStr;
  final String timeStr;
  final String sysCodeStr;
  final String requestCodeStr;

  const YBMyGongDanSubPage({Key key, this.contentStr, this.addressStr, this.shengYuStr, this.timeStr,this.sysCodeStr,this.requestCodeStr}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    print('----$sysCodeStr---////////---$requestCodeStr-');
    return InkWell(
      child: Container(
        color: YBColor.white,
        child: Column(
          children: [
            Container(
              child: Padding(
                padding: EdgeInsets.only(left: YBTextStyle.adapterSize20,right: YBTextStyle.adapterSize20),
                child: Column(
                  mainAxisAlignment: MainAxisAlignment.center,
                  crossAxisAlignment: CrossAxisAlignment.stretch,
                  children: [
                    Container(
                      height: YBTextStyle.adapterSize16,
                    ),
                    Container(
                      child: Text(
                        contentStr??'',
                        maxLines: 1,
                        style: YBTextStyle.TextStyle1B1C1F18Medium,
                      ),
                    ),
                    Container(
                      height: YBTextStyle.adapterSize12,
                    ),
                    Container(
                      child: Text(
                        addressStr??"",
                        style: YBTextStyle.TextStyle6E737A14,
                      ),
                    ),
                    Container(
                      height: YBTextStyle.adapterSize12,
                    ),
                    Container(
                      child: Text(
                        '允许$shengYuStr人接单'??"",
                        style: YBTextStyle.TextStyle6E737A13,
                      ),
                    ),
                    Container(
                      height: YBTextStyle.adapterSize20,
                    ),
                    Container(
                      height: 0.5,
                      color: YBColor.colorF5F5F7,
                    ),
                    Container(
                      height: YBTextStyle.adapterSize13,
                    ),
                    Container(
                      child: Text(
                        timeStr??"",
                        style: YBTextStyle.TextStyle71747A12,
                      ),
                    ),

                  ],
                ),
              ),
            ),
            Container(
              height: YBTextStyle.adapterSize13,
            ),
            Container(
              height: YBTextStyle.adapterSize5,
              color: YBColor.colorF5F5F7,
            ),
          ],
        ),
      ),
      onTap: (){
        YBApplication.router.navigateTo(context, '/mine/mineShangjiXiangQingPage?syscode=$sysCodeStr&requestcode=$requestCodeStr');
      },
    );
  }
}
